package dao;

import java.math.BigDecimal;
import java.util.List;

public interface DAO<T> {
	
	public void persist(T transientInstance);
	public void attachDirty(T instance);
	public void attachClean(T instance);
	public void delete(T persistentInstance);
	public T merge(T detachedInstance);
	public T findById(BigDecimal id);
	public T findById(Integer id);
	public List<T> findByExample(T instance);
	
}
